import request from '@/utils/request'

const root = '/server/manager'

export function openviduDetail(data) {
  return request({
    url: root + '/openvidu/detail',
    method: 'post',
    data
  })
}

export function sessionDetail(data) {
  return request({
    url: root + '/session/detail',
    method: 'post',
    data
  })
}

export function sessionClose(data) {
  return request({
    url: root + '/session/close',
    method: 'post',
    data
  })
}

export function sessionForceDisconnect(data) {
  return request({
    url: root + '/session/force/disconnect',
    method: 'post',
    data
  })
}

export function sessionForceUnpublish(data) {
  return request({
    url: root + '/session/force/unpublish',
    method: 'post',
    data
  })
}
